package com.cy.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.boot.autoconfigure.security.SecurityProperties.User;

import com.cy.pojo.Userdto;
import com.cy.pojo.Userpojo;
@Mapper
public interface Userdao {
	
	@Select("select * from user where uid=#{id}")
	Userpojo selectUid(int id);
	@Select("select COUNT(*) from user where uid=#{id}")
	int couser(String id);
	@Select("select COUNT(*) from user where user=#{user}")
	int coUserName(String user);
	@Select("select * from user where user=#{user}")
	Userpojo selectByUname(String user);
	
	@Insert("INSERT INTO user(user,psw) VALUES(?,?)")
	int insertzhuce(String user);
	
	
	
	
	
}
